package com.cb.domain.service.Insurance;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cb.domain.service.Insurance.Impl.Hybx;
import com.cb.domain.service.Insurance.Impl.NewBizHybx;
import com.cb.domain.service.Insurance.Impl.OutSideInsuranceImpl;

@Service
public class FactoryInsuranceCreater {
	@Resource
	private OutSideInsuranceImpl outSideInsuranceImpl;
	
	@Resource
	private Hybx hybx;

	@Resource
	private NewBizHybx newBizHybx;
	public InsuranceSaver createSaver(int saveType){
		InsuranceSaver saver=null;
		switch (saveType) {
		case 1:
			//境外意外险
			saver=outSideInsuranceImpl;
			break;
			//太平洋养老
		case 2:
			saver=hybx;
			break;
		case 3:
			saver=newBizHybx;
		default:
			break;
		}
		return saver;
	}
}
